package com.guangfeng.yql.comm.netty.initalizer;

import com.guangfeng.yql.comm.netty.NettyProperty;
import io.netty.channel.ChannelInitializer;
import io.netty.channel.socket.SocketChannel;
import org.springframework.stereotype.Component;

@Component
public abstract class BaseInitializer<T> extends ChannelInitializer<SocketChannel> {


    private NettyProperty nettyProperty;


    public abstract void init(NettyProperty nettyProperty);

    public void setNettyProperty(NettyProperty nettyProperty) {
        this.nettyProperty = nettyProperty;
    }

    ;

    public NettyProperty getNettyProperty() {
        return nettyProperty;
    }
}
